package org.vt.scheduleapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class Options extends Activity {
	
	/** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.options);

        ImageButton next = (ImageButton) findViewById(R.id.button1);
        ImageButton ringer = (ImageButton) findViewById(R.id.button2);
        
        next.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), LocationsActivity.class);
                startActivityForResult(myIntent, 0);
            }

        });
        
        ringer.setOnClickListener(new OnClickListener()
	    {
	    	public void onClick(View view)
	    	{
	    		Intent myIntent = new Intent(view.getContext(), RingerTestingActivity.class);
	            startActivityForResult(myIntent, 0);
	    	}
	    });
    }
    @Override
	public void onBackPressed(){
		Intent myIntent = new Intent(this, ScheduleAppActivity.class);
		startActivityForResult(myIntent, 0);
	}
}
